A Work Efficient Parallel Algorithm for Constructing Huffman Codes

نویسندگان

  • Ruy Luiz Milidiú
  • Eduardo Sany Laber
  • Artur Alves Pessoa
چکیده

Given an tilphabet C = (al! . . . , a,) and a corresponding list of weights [WI, . . . , w,], a Huffman code for this alphabet is a prefix code that minimizes the weighted length of a code string, defined to be Cr.., wili, where li is the length of the code assigned to ai. A. Huffman code can be generated in O(n log n) time for an unsorted list of weights alld in Cl(n) time if the weights are already sorted [Huf52, vL76, MK95]. There are some parallel algorithms for const#ructing Hufhnan codes. The best NC algorithm is due to Atallah et all [AKL+89]. It I’UI~S in O(lo$n) time and requires 0(n2/logn) processors. In [LP95] Larmore and Przytycka show a reduction from the CLWS (Concave Least Weight Subsequece) problem to the Huffman code problem and they present an O(n Ii2 logn)-time algorithm for CLWS problem that requires O(n) processors. In [KP90] Kirkpatrick and Przytycka show several approximated parallel algorithms for constructing Huffman codes. In particular, they propose a l/n” approximate algorithm that runs in O(lc logn log* n) and requires n CREW processors, Yor a given value of Ic. A list of n numbers can be sorted in O(log n,) parallel time, with O(n log n) work [Co188]. Hence, throughout this work, we assume that the list of weights is sorted, that is, w1 < . . . < w,,.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

A Two-phase Practical Parallel Algorithm for Construction of Huffman Codes

The construction of optimal prefix codes plays a significant and influential role in applications concerning information processing and communication. For decades, different algorithms were proposed treating the issue of Huffman codes construction and various optimizations were introduced. In this paper we propose a detailed practical time-efficient parallel algorithm for generating Huffman cod...

متن کامل

Approximating Huffman Codes in Parallel

In this paper we present some new results on the approximate parallel construction of Huuman codes. Our algorithm achieves linear work and logarithmic time, provided that the initial set of elements is sorted. This is the rst parallel algorithm for that problem with the optimal time and work. Combining our approach with the best known parallel sorting algorithms we can construct an almost optim...

متن کامل

University of Warsaw Faculty of Mathematics , Informatics and Mechanics Marek Biskup

In compressed data a single bit error propagates because of the corruption of the decoder’s state. This work is a study of error resilience in compressed data and, in particular, of the recovery of as much data as possible after a bit error. It is focused on Huffman codes. In a message encoded with a Huffman code a bit error causes the decoder to lose synchronization with the coder. The error p...

متن کامل

Hardware Implementation of A Power Efficient Huffman Decoding

Data compression plays an important role in multimedia communication. A major compression technique is performed by converting the fixed-length codes to variable-length codes. Huffman coding is demonstrated to be a very efficient coding scheme and has been widely adopted. However, the variable-length codes increase the difficulties of fast decoding. In addition, the variable decoding time is no...

متن کامل

Constructing Huffman Trees in Parallel

We present a parallel algorithm for the Huuman Coding problem. We reduce the Huuman Coding problem to the Concave Least Weight Subsequence problem and give a parallel algorithm that solves the latter problem in O(p n log n) time with n processors on a CREW PRAM. This leads to the rst sublinear time o(n 2)-total work parallel algorithm for Huuman Coding. This reduction of the Huuman Coding probl...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1999